.class Lorg/zeam/Launcher$LauncherDialog;
.super Ljava/lang/Object;
.source "Launcher.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
.implements Landroid/content/DialogInterface$OnCancelListener;
.implements Landroid/content/DialogInterface$OnDismissListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/zeam/Launcher;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "LauncherDialog"
.end annotation


# instance fields
.field private mHomeDialogAdapter:Lorg/zeam/LauncherDialogAdapter;

.field final synthetic this$0:Lorg/zeam/Launcher;


# direct methods
.method private constructor <init>(Lorg/zeam/Launcher;)V
    .locals 0
    .parameter

    .prologue
    .line 2207
    iput-object p1, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lorg/zeam/Launcher;Lorg/zeam/Launcher$LauncherDialog;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 2207
    invoke-direct {p0, p1}, Lorg/zeam/Launcher$LauncherDialog;-><init>(Lorg/zeam/Launcher;)V

    return-void
.end method

.method private cleanup()V
    .locals 2

    .prologue
    .line 2236
    iget-object v0, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-static {v0}, Lorg/zeam/Launcher;->access$5(Lorg/zeam/Launcher;)Lorg/zeam/Workspace;

    move-result-object v0

    invoke-virtual {v0}, Lorg/zeam/Workspace;->unlock()V

    .line 2237
    iget-object v0, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lorg/zeam/Launcher;->dismissDialog(I)V

    .line 2238
    return-void
.end method


# virtual methods
.method createDialog()Landroid/app/Dialog;
    .locals 5

    .prologue
    const/4 v4, 0x1

    .line 2215
    iget-object v2, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-static {v2, v4}, Lorg/zeam/Launcher;->access$0(Lorg/zeam/Launcher;Z)V

    .line 2216
    new-instance v2, Lorg/zeam/LauncherDialogAdapter;

    iget-object v3, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-direct {v2, v3}, Lorg/zeam/LauncherDialogAdapter;-><init>(Lorg/zeam/Launcher;)V

    iput-object v2, p0, Lorg/zeam/Launcher$LauncherDialog;->mHomeDialogAdapter:Lorg/zeam/LauncherDialogAdapter;

    .line 2217
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-direct {v0, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 2218
    .local v0, builder:Landroid/app/AlertDialog$Builder;
    iget-object v2, p0, Lorg/zeam/Launcher$LauncherDialog;->mHomeDialogAdapter:Lorg/zeam/LauncherDialogAdapter;

    invoke-virtual {v0, v2, p0}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 2219
    invoke-virtual {v0, v4}, Landroid/app/AlertDialog$Builder;->setInverseBackgroundForced(Z)Landroid/app/AlertDialog$Builder;

    .line 2220
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v1

    .line 2221
    .local v1, dialog:Landroid/app/AlertDialog;
    invoke-virtual {v1, p0}, Landroid/app/AlertDialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 2222
    invoke-virtual {v1, p0}, Landroid/app/AlertDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 2223
    return-object v1
.end method

.method public onCancel(Landroid/content/DialogInterface;)V
    .locals 2
    .parameter "dialog"

    .prologue
    .line 2227
    iget-object v0, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lorg/zeam/Launcher;->access$0(Lorg/zeam/Launcher;Z)V

    .line 2228
    invoke-direct {p0}, Lorg/zeam/Launcher$LauncherDialog;->cleanup()V

    .line 2229
    return-void
.end method

.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 2
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 2242
    invoke-direct {p0}, Lorg/zeam/Launcher$LauncherDialog;->cleanup()V

    .line 2243
    packed-switch p2, :pswitch_data_0

    .line 2254
    :goto_0
    return-void

    .line 2245
    :pswitch_0
    iget-object v0, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    iget-object v1, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-static {v1}, Lorg/zeam/Launcher;->access$7(Lorg/zeam/Launcher;)Lorg/zeam/CellLayout$CellInfo;

    move-result-object v1

    invoke-static {v0, v1}, Lorg/zeam/Launcher;->access$8(Lorg/zeam/Launcher;Lorg/zeam/CellLayout$CellInfo;)V

    goto :goto_0

    .line 2248
    :pswitch_1
    iget-object v0, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-static {v0}, Lorg/zeam/Launcher;->access$9(Lorg/zeam/Launcher;)V

    goto :goto_0

    .line 2251
    :pswitch_2
    iget-object v0, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-static {v0}, Lorg/zeam/Launcher;->access$10(Lorg/zeam/Launcher;)V

    goto :goto_0

    .line 2243
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method public onDismiss(Landroid/content/DialogInterface;)V
    .locals 1
    .parameter "dialog"

    .prologue
    .line 2232
    iget-object v0, p0, Lorg/zeam/Launcher$LauncherDialog;->this$0:Lorg/zeam/Launcher;

    invoke-static {v0}, Lorg/zeam/Launcher;->access$5(Lorg/zeam/Launcher;)Lorg/zeam/Workspace;

    move-result-object v0

    invoke-virtual {v0}, Lorg/zeam/Workspace;->unlock()V

    .line 2233
    return-void
.end method
